// src/api/borrow_api.js
import http from '../util/request.js'

export default {

    // 还书
    return: (borrowId) => {
        return http({
            url: '/api/borrow/return',
            method: 'post',
            params: {
                borrowId: borrowId
            }
        })
    },

    // 分页查询借阅记录
    page: (obj) => {
        return http({
            url: '/api/borrow/page',
            method: 'get',
            params: obj
        })
    },

}
